/**
 * Sonatype Nexus (TM) Open Source Version
 * Copyright (c) 2008-present Sonatype, Inc.
 * All rights reserved. Includes the third-party code listed at http://links.sonatype.com/products/nexus/oss/attributions.
 *
 * This program and the accompanying materials are made available under the terms of the Eclipse Public License Version 1.0,
 * which accompanies this distribution and is available at http://www.eclipse.org/legal/epl-v10.html.
 *
 * Sonatype Nexus (TM) Professional Version is available from Sonatype, Inc. "Sonatype" and "Sonatype Nexus" are trademarks
 * of Sonatype, Inc. Apache Maven is a trademark of the Apache Software Foundation. M2eclipse is a trademark of the
 * Eclipse Foundation. All other trademarks are the property of their respective owners.
 */
/**
 * @since 3.22
 */
@import '../../../styles/colors';

$nxrm-alert-margin: 8px;

.nxrm-alert {
  background-color: $nxrm-warn-color-bg;
  border: 1px solid $nxrm-warn-color;
  color: $nxrm-warn-color;
  margin: $nxrm-alert-margin;
  padding: 9px 8px 8px 8px;

  .svg-inline--fa {
    margin-right: 8px;
  }

  :first-child {
    margin-top: 0;
  }

  .nxrm-scrollable {
    margin-top: -8px;
    margin-right: -8px;
  }
}

.nxrm-alert--error {
  background-color: $nxrm-fail-color-bg;
  border-color: $nxrm-fail-color;
  color: $nxrm-fail-color;
}

.nxrm-alert--info {
  background-color: $nxrm-off-white;
  border-color: $nxrm-dark-blue;
  color: $nxrm-off-black;

  .svg-inline--fa {
    color: $nxrm-dark-blue;
    font-size: 16px;
  }
}
